﻿<%@ Page Language="C#" MasterPageFile="~/_layouts/application.master" CodeBehind="sitehierarchy.aspx.cs"
    Inherits="WeMakeSP.SiteManagement.UI.Web.SiteHierarchy, WeMakeSP.SiteManagement, Version=1.0.0.0, Culture=neutral, PublicKeyToken=92b19f52e3b985bd" %>

<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="/_controltemplates/InputFormControl.ascx" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    <SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" Text="<%$Resources:wss,settings_pagetitle%>"
        EncodeMethod='HtmlEncode' />
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageDescriptionRowAttr"
    runat="server">
    style="display:none;"
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="PlaceHolderPageDescriptionRowAttr2"
    runat="server">
    style="display:none;"
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="PlaceHolderPageImage" runat="server" />
<asp:Content ID="Content6" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
        });

        function CheckAll(id) {
            DoCheck(id, true);
        }

        function UncheckAll(id) {
            DoCheck(id, false);
        }

        function DoCheck(id, check) {
            $("input:checkbox[id*=" + id + "]").
                each(function() {
                    this.checked = check;
                });
        }        
    </script>

</asp:Content>
<asp:Content ID="Content15" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <!-- Web Tree Section -->
    <wssuc:InputFormSection id="webTreeSection" Title="<%$Resources:site_management,web_hierarchy%>"
        Description="<%$Resources:site_management,web_hierarchy_description%>" runat="server">
        <template_inputformcontrols>
    <wssuc:InputFormControl runat="server" id="webTreeInputFormControl">
        <template_control>
				<TABLE border="0" width="100%" cellspacing="0" cellpadding="2" border="1">
					<TR>
						<TD valign="top" align="center" width="50">
							 <div>
        <SharePoint:SPHierarchyDataSourceControl runat="server" ID="treeViewDataSource" 
            IncludeDiscussionFolders="False" ShowDocLibChildren="False" ShowFolderChildren="False" 
            ShowListChildren="False" ShowWebChildren="True" />
        <SharePoint:SPTreeView ID="siteHierarchyTreeView" runat="server" DataSourceID="treeViewDataSource"
            ShowLines="false" ExpandDepth="FullyExpand" SelectedNodeStyle-CssClass="ms-tvselected"
            NodeStyle-CssClass="ms-navitem" NodeStyle-HorizontalPadding="2" SkipLinkText=""
            NodeIndent="12" ExpandImageUrl="/_layouts/images/tvplus.gif" CollapseImageUrl="/_layouts/images/tvminus.gif"
            NoExpandImageUrl="/_layouts/images/tvblank.gif" ShowCheckBoxes="All" ParentNodeStyle-CssClass="ms-navitem" RootNodeStyle-CssClass="ms-navitem" LeafNodeStyle-CssClass="ms-navitem" HoverNodeStyle-CssClass="ms-navitem" CssClass="ms-navitem">
        </SharePoint:SPTreeView>
    </div>
    </td>
    </tr>
    <tr>
    <td align="right">
    <div>
        <table>
        <tr>
        <td align="right">
        <asp:ImageButton ID="unselectAllWebButton" OnClientClick="UncheckAll('siteHierarchyTreeView');return false;" runat="server" ImageUrl="unselect_all.gif" ToolTip="<%$Resources:site_management,unselect_all%>"/>
        </td>
        <td align="right">
        <asp:ImageButton ID="selectAllWebButton" OnClientClick="CheckAll('siteHierarchyTreeView');return false;" runat="server" ImageUrl="select_all.gif" ToolTip="<%$Resources:site_management,select_all%>"  />
        </td>
        </tr>
        </table>
    </div>
						</TD>
					</TR>
				</TABLE>
			</template_control>
    </wssuc:InputFormControl>
    </template_inputformcontrols>
    </wssuc:InputFormSection>
    <!-- Master Page Section -->
    <wssuc:InputFormSection id="masterPageSection" Title="<%$Resources:site_management,apply_masterpage%>"
        Description="<%$Resources:site_management,apply_masterpage_description%>" runat="server">
        <template_inputformcontrols>
		<wssuc:InputFormControl runat="server" id="masterPageInputFormControl">
			<Template_Control>
				<TABLE border="0" width="100%" cellspacing="0" cellpadding="2">
					<TR>
						<TD class="ms-authoringcontrols" valign="top" align="center" width="50">
							<asp:CheckBox ID="masterPageCheckBox" Checked="false" runat="server" />
						</TD>
						<TD class="ms-authoringcontrols" width="10"></TD>
						<TD nowrap class="ms-authoringcontrols" width="100%">
							<Label for=<%SPHttpUtility.AddQuote(SPHttpUtility.NoEncode(inheritThemeCheckBox.ClientID),Response.Output);%>><SharePoint:EncodedLiteral ID="EncodedLiteral4" runat="server" text="<%$Resources:site_management,apply_masterpage%>" EncodeMethod='HtmlEncode'/></Label>
						</TD>
					</TR>
				</TABLE>
			</Template_Control>
		</wssuc:InputFormControl>
	</template_inputformcontrols>
    </wssuc:InputFormSection>
    <!-- Theme Section -->
    <wssuc:InputFormSection id="inheritThemeSection" Title="<%$Resources:site_management,apply_theme%>"
        Description="<%$Resources:site_management,apply_theme_description%>" runat="server">
        <template_inputformcontrols>
		<wssuc:InputFormControl runat="server" id="inheritThemeInputFormControl">
			<Template_Control>
				<TABLE border="0" width="100%" cellspacing="0" cellpadding="2">
					<TR>
						<TD class="ms-authoringcontrols" valign="top" align="center" width="50">
							<asp:CheckBox ID="inheritThemeCheckBox" Checked="false" runat="server" />
						</TD>
						<TD class="ms-authoringcontrols" width="10"></TD>
						<TD nowrap class="ms-authoringcontrols" width="100%">
							<Label for=<%SPHttpUtility.AddQuote(SPHttpUtility.NoEncode(inheritThemeCheckBox.ClientID),Response.Output);%>><SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" text="<%$Resources:site_management,apply_theme%>" EncodeMethod='HtmlEncode'/></Label>
						</TD>
					</TR>
				</TABLE>
			</Template_Control>
		</wssuc:InputFormControl>
	</template_inputformcontrols>
    </wssuc:InputFormSection>
    <!-- Logo Section -->
    <wssuc:InputFormSection id="logoSection" Title="<%$Resources:site_management,apply_logo%>"
        Description="<%$Resources:site_management,apply_logo_description%>" runat="server">
        <template_inputformcontrols>
		<wssuc:InputFormControl runat="server" id="logoInputFormControl">
			<Template_Control>
				<TABLE border="0" width="100%" cellspacing="0" cellpadding="2">
					<TR>
						<TD class="ms-authoringcontrols" valign="top" align="center" width="50">
							<asp:CheckBox ID="logoCheckBox" Checked="false" runat="server" />
						</TD>
						<TD class="ms-authoringcontrols" width="10"></TD>
						<TD nowrap class="ms-authoringcontrols" width="100%">
							<Label for=<%SPHttpUtility.AddQuote(SPHttpUtility.NoEncode(inheritThemeCheckBox.ClientID),Response.Output);%>><SharePoint:EncodedLiteral ID="EncodedLiteral5" runat="server" text="<%$Resources:site_management,apply_logo%>" EncodeMethod='HtmlEncode'/></Label>
						</TD>
					</TR>
				</TABLE>
			</Template_Control>
		</wssuc:InputFormControl>
	</template_inputformcontrols>
    </wssuc:InputFormSection>
    <wssuc:ButtonSection runat="server">
        <template_buttons>
					<INPUT type=submit class="ms-ButtonHeightWidth" value="<%$Resources:wss,themeweb_apply%>" id=submit name=submit OnServerClick="SubmitClickEventHandler" ACCESSKEY="S" runat="server"/>
		</template_buttons>
    </wssuc:ButtonSection>
</asp:Content>
